package net.biz.reminder.util;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;

public class PropertyUtil {
	/**
	 * 从reminder.properties中获取设置值
	 * 
	 * @param key
	 * @return
	 * @throws IOException
	 * @throws FileNotFoundException
	 */
	public static String get(String key) throws FileNotFoundException,
			IOException {
		Properties prop = new Properties();
		prop.load(new FileInputStream("reminder.properties"));
		return prop.getProperty(key);
	}
}
